﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FormulaRunning.Utils
{
    public class StringUtil
    {
        /**
         * 判断字符串是否全部由数字组成，是返回true
         */
        public static bool IsNum(String str)
        {
            for (int i = 0; i < str.Length; i++)
            {
                if (!Char.IsNumber(str, i))
                    return false;
            }
            return true;
        }
    }
}